package com.itcast.activiti.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;

/**
 * <p>
 * 
 * </p>
 *
 * @author itcast
 * @since 2020-12-31
 */
@Data
@FieldNameConstants
@EqualsAndHashCode(callSuper = false)
public class ActIdPassUser implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID_", type = IdType.AUTO)
    private Integer id;

    @TableField("USER_EMAIL_")
    private String userEmail;

    @TableField("PASS_USER_EMAIL_")
    private String passUserEmail;

    @TableField("RANK_")
    private Integer rank;

    @TableField("PROCESS_TYPE_")
    private String processType;

    @TableField("PROCESS_KEY_")
    private String processKey;

    @TableField("ACT_ID_PROCESS_ID_")
    private Integer actIdProcessId;

    @TableField("DELETED_")
    private Boolean deleted;

    /**
     * 删除人
     */
    private String deletedBy;

    /**
     * 删除时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime deletedDatetime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createdDatetime;

    /**
     * 创建人
     */
    private String createdBy;
}
